package sctu.edu.java.year2016.team06.yuweimei.day20160529.chapter8_3;

/**
 * 尝试创建一个父类和子类，分别创建构造方法，然后向父类和子类添加成员变量和方法，并总结构建子类对象时的顺序。
 * Created by asus on 2016/5/29.
 */
public class Employee {
    private String name;
    private String sex;
    private double salary;

    public Employee(String name, String sex, double salary) {
        this.name = name;
        this.sex = sex;
        this.salary = salary;
        System.out.println("my name is:" + name);
        System.out.println("my sex is:" + sex);
        System.out.println("my salary is:" + salary);
    }

    public void personal() {
        System.out.println("all above are my information");
    }


}






